package unit_5;
import java.util.Arrays;
public class Demo10 {
    public static boolean equals(int[] list1, int[] list2){
        return Arrays.equals(list1, list2);
    }

    public static void main(String[] args) {
        int[] a = {1, 2, 3};
        int[] b = {1, 2, 3};
        int[] c = {1, 2};
        System.out.println(equals(a, b));
        System.out.println(equals(a, c));
    }
}
